const MAXSTLEN = 30;
const MAXLISTLEN = 100000;
const MAXLENDATA = 200;
const MAXLENTOKEN = 20; 
enum voteStatus{
  vsVoted = 0,
  vsBadArtistParam = 1,
  vsInvalidVoter = 2,
  vsMultipleVotes = 3,
  vsOtherError = 4
};

struct countItem{
  char name[MAXSTLEN];
  int count;
};

struct countList{
   countItem array[MAXLISTLEN];
   unsigned long num;
};


struct uidList{
  long uids[MAXLISTLEN]; 
  unsigned long num; 
};

struct NetMessage
{
  char data[MAXLENDATA];
  int length;
};

program VOTESYS{
  version VOTEVERS
  {
    NetMessage vote(NetMessage) = 1;
    NetMessage results() = 2;
    void closeVote() = 3; 
  } = 1;
} = 0x23262302;
